<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
楼号:${record.floorNo },宿舍号：${record.dromNo },现住人数:${record.countren }以下为该宿舍记录
<table>
	<tr>
		<th>编号</th>
		<th>学生</th>
		<th>入住时间</th>
		<th>离开时间</th>
	</tr>
	<c:forEach items="${list }" var="c">
		<tr>
			<td>${c.id }</td>
			<td>${c.name }</td>
			<td>
				<fmt:formatDate value="${c.startTime }" pattern="yyyy-MM-dd"/>
			</td>
			<td>
				<fmt:formatDate value="${c.endTime }" pattern="yyyy-MM-dd"/>
				<c:if test="${c.endTime==null }">至今</c:if>
			</td>
		</tr>
	</c:forEach>
</table>
</body>
</html>